﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="Web.admin.news.list" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../../images/main_hl.gif" alt="" /></td>
                        <td ><img src="../../images/main_hl2.gif" alt="" /></td>
                        <td class="topNav"><span>信息列表</span></td>
                        <td><img src="../../images/main_hr.gif" alt="" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;信息发布&gt;信息列表</span></div>
            <div class="tools_box">
                <div class="tools_bar">
                    <a href="edit.aspx"  class="tools_btn"><span><b class="add">添加信息</b></span></a>
                    <a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>
                    <asp:LinkButton runat="server" CssClass="tools_btn" ID="btn_Delete" OnClick="btnDelete_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');"><span><b class="delete">批量删除</b></span></asp:LinkButton>
                </div>
            </div>
            <div class="chooseClass">
                <span>请选择：</span>
                <asp:DropDownList ID="ddlClass" runat="server" OnTextChanged="ddlClass_Change" AutoPostBack="true" ></asp:DropDownList>
            </div>
            <div class="content_table">
                <table class="msgtable" >
                    <asp:Repeater ID="RpList" runat="server" >
                        <HeaderTemplate>
                            <tr>
                                <th>选择</th>
                                <th>编号</th>
                                <th>标题</th>
                                <th>所属类别</th>
                                <th>发布时间</th>
                                <th>操作</th>
                            </tr>  
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><asp:CheckBox ID="CbChoose" CssClass="checkBox" runat="server" /></td>
                                <td><asp:Label ID="lb_id" runat="server" Text='<%#Eval("NewsClassId")%>'></asp:Label></td>
                                <td><%#Eval("NewsTitle")%></td>
                                <td><%#Eval("NCTitle")%></td>
                                <td><%#DateTime.Parse(Eval("NewspubTime").ToString()).ToString("yyyy-MM-dd")%></td>
                                <td><a href="edit.aspx?id=<%#Eval("NewsId")%>">修改</a>|<a href="show.aspx?id=<%#Eval("NewsId") %>">详情</a>|<a href="SingleDelete.ashx?id=<%#Eval("NewsId")%>">删除</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater> 
                </table>
                <center>
                    <div >
                        <span>共</span><label runat="server" id="lbPageAll"></label><span>条数据</span>
                        <span>分</span><label runat="server" id="lbPager"></label><span>页显示</span>
                        <asp:LinkButton ID="First" CommandName="First" runat="server" OnClick="PageClick">首页</asp:LinkButton>
                        <asp:LinkButton ID="Prev" CommandName ="Prev" runat="server" OnClick="PageClick">上一页</asp:LinkButton>
                        <span>第</span><label runat="server" id="lbIndexPage"></label><span>页</span>
                        <asp:LinkButton ID="Next" CommandName="Next" runat="server" OnClick="PageClick">下一页</asp:LinkButton>
                        <asp:LinkButton ID="Last" CommandName="Last" runat="server" OnClick="PageClick">尾页</asp:LinkButton>
                        <span>跳转到：</span>
                        <asp:DropDownList ID="DDLPager" AutoPostBack="true" runat="server" OnTextChanged="DDLpager_Change">
                        </asp:DropDownList> 
                    </div>
                </center>
            </div>

        </div>
        <div class="middle_right"></div>    
    </div>
    </form>
</body>
</html>
